//
//  VideoH264Decode.h
//  OneToOne
//
//  Created by ByteDance on 2023/2/23.
//

#import <Foundation/Foundation.h>
#import <CoreMedia/CoreMedia.h>
#import <VideoToolbox/VideoToolbox.h>
NS_ASSUME_NONNULL_BEGIN
@class VideoH264Decode;
@protocol VideoH264DecoderDelegate <NSObject>
@optional
- (void)decoder:(VideoH264Decode *) decoder didDecodingFrame:(CVImageBufferRef) imageBuffer;
@end

@interface VideoH264Decode : NSObject
@property (nonatomic, weak) id<VideoH264DecoderDelegate> delegate;

//  解码NALU
- (void)decodeNalu:(uint8_t *)frame size:(uint32_t)frameSize;
@end

NS_ASSUME_NONNULL_END
